Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add tests for authorizers #846

Merged
merged 17 commits into from
Oct 28, 2023
Merged

Add tests for authorizers #846

merged 17 commits into from
Oct 28, 2023

Conversation

peterlimg
Copy link
Member

@peterlimg peterlimg commented Aug 29, 2023

  • Add tests to register and delete authorizer from DEX SC
  • Add tests to register and delete authorizer from zcnsc
  • Add tests to replace authorizers and test the burn-zcn mint-wzcn before and after

Related PRs:

@peterlimg peterlimg changed the base branch from master to sprint-1.11 September 4, 2023 05:18
require.NoError(t, err, "Unexpected remove authorizer failure", strings.Join(output, "\n"))
t.Logf("remove authorizer: %s zcnsc successfully", auth2.ID)

// add back the first removed authorizer
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

In this case according to smart contracts logic, the first authorizer will be added again, not the one with index 0. It does not affect actual logic here, but this comments may be confusing.

Copy link
Member Author

@peterlimg peterlimg Oct 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm not quite sure what the index 0 do you mean here, but what I'm intend to say is the index 0 of auths defined above. Anyway, rephrased the comment, hope it is clearer now.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I guess we can associate these test cases into one file regarding authorizer tests

@Kishan-Dhakan
Copy link
Contributor

@Kishan-Dhakan Kishan-Dhakan merged commit 70a4047 into sprint-1.11 Oct 28, 2023
6 of 8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants